LassoScript Utility
Basics Browse Detail

[Date->Hour]

Tag Link [Date->Hour] Category Date
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[Date->Hour] returns the hour for a specified Lasso date/time cast using the [Date] tag.

An optional -Short parameter returns integer hour from 1 to 12 instead of 1 to 24.

Syntax

[(Date)->Hour]
[(Date)->(Hour: -Short)]

Parameters

Optional Parameters
-Short Returns the hour in 12-hour time rather than the default of 24-hour time.

Examples

To return the hour from a date:

The following example returns the hour from the Lasso date 8/29/2002 12:00:00.

[(Date:'8/29/2002 12:00:00')->Hour]

12